{% extends '_base.html' %}

{% block top_css %}
    {{ super() }}

    <!--Nice Validator-->
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='plugins/nice-validator/jquery.validator.css') }}">
    <!--Select2-->
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='plugins/select2/css/select2.min.css') }}">
    <!--Datepicker-->
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='plugins/daterangepicker/daterangepicker.css') }}">

{% endblock %}

{% block content %}
    <div id="content-container">
        <!--头部-->
        <div id="page-head">
            <!--头部标题-->
            <div id="page-title">
                <h1 class="page-header text-overflow">{% block head_title %}{% endblock %}</h1>
            </div>
            <!--导航标题-->
            {% block head_nav %}
            {% endblock %}
        </div>

        <!--内容-->
        <div id="page-content">
            {% block content_body %}
                <div class="panel panel-fixed">
                    {% block tip %}
                    {% endblock %}

                    <div class="panel-heading">
                        <h3 class="panel-title title-middle">
                            {% block body_title %}
                            {% endblock %}
                        </h3>
                    </div>

                    {% block body_form %}
                    {% endblock %}
                </div>
            {% endblock %}
        </div>
    </div>
{% endblock %}


{% block buttom_js %}
    {{ super() }}

    <!--Nice Validator-->
    <script src="{{ url_for('static', filename='plugins/nice-validator/jquery.validator.min.js') }}"></script>
    <script src="{{ url_for('static', filename='plugins/nice-validator/local/zh-CN.js') }}"></script>
    <!--Select2-->
    <script src="{{ url_for('static', filename='plugins/select2/js/select2.full.min.js') }}"></script>
    <script src="{{ url_for('static', filename='plugins/select2/js/i18n/zh-CN.js') }}"></script>
    <!--Datepicker-->
    <script src="{{ url_for('static', filename='plugins/daterangepicker/moment-with-locales.min.js') }}"></script>
    <script src="{{ url_for('static', filename='plugins/daterangepicker/daterangepicker.js') }}"></script>

{% endblock %}

